package com.quectel.core.module.entranceguard.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 人员卡片
 *
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2021-11-18 16:28:38
 */
@Data
@Schema
public class EntranceGuardPersonCardDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;
    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
    /**
     * 1住户2访客
     */
    @Schema(description = "1住户2访客")
    private Byte personType;

    /**
     *
     */
    @Schema(description = "")
    private Long personId;

    /**
     * 人员编码默认就等于householdId转为字符串
     */
    @Schema(description = "人员编码默认就等于householdId转为字符串")
    private String personCode;

    /**
     * 设备id
     */
    @Schema(description = "设备id")
    private Long deviceId;

    /**
     * 卡号
     */
    @Schema(description = "卡号")
    private String cardNo;

    /**
     * 如果是数字转为数字
     */
    @Schema(description = "如果是数字转为数字")
    private Long cardNoLong;

    /**
     * 下发类型1是新增2删除
     */
    @Schema(description = "下发类型1是新增2删除")
    private Byte authType;


    /**
     * 0下发未成功1下发成功
     */
    @Schema(description = "0下发未成功1下发成功")
    private Byte sendStatus;

    /**
     *
     */
    @Schema(description = "")
    private Date createTime;

    /**
     *
     */
    @Schema(description = "")
    private String creator;

    /**
     *
     */
    @Schema(description = "")
    private Date editTime;

    /**
     *
     */
    @Schema(description = "")
    private String editor;

    /************非数据库字段 start ************/
    /**
     * 人员姓名
     */
    private String personName;
    /**
     * 设备imei
     */
    private String deviceImei;
    /**
     * 设备名称
     */
    private String deviceName;
    /************非数据库字段 end **************/
}
